#pragma once

#define CMDNO_PUSH     1
#define CMDNO_PULL     2
#define CMDNO_ANSWER   3
#define CMDNO_STOPPUSH 4
#define CMDNO_STOPPULL 5

#define MAX_RES_BUF 4096


#include <string>

namespace xrtc {


struct RtcMsg {
    int m_cmdno = -1;
    uint64_t m_uid = 0;
    std::string m_stream_name;
    std::string m_stream_type;
    int m_audio = 0;
    int m_video = 0;
    uint32_t m_log_id = 0;
    void* m_worker;
    void* m_conn = nullptr;
    int m_fd = 0;
    std::string m_sdp;
    int m_err_no = 0;
    void* m_certificate = nullptr;
};

} // namespace xrtc